// 设计登录时未按规范输入报错的对话框

// 去除VSCode非必要报警
// ignore_for_file: sized_box_for_whitespace, camel_case_types

import 'package:flutter/material.dart';
import 'package:project_award_statistics/utils/mobile_material_design/my_button.dart';

class DialogLoginErr_Empty extends StatelessWidget {
  const DialogLoginErr_Empty({super.key});

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      backgroundColor: Theme.of(context).colorScheme.surface,
      content: Container(
        height: 186,
        width: 450,
        child: Padding(
          padding: const EdgeInsets.only(left: 2.0,right: 2.0),
          child: Column(   //设置列式布局容器
            children: [
              Center(
                child: Text(
                  "登录错误",
                  style: TextStyle(
                    fontSize: 20,
                    fontWeight: FontWeight.bold,
                  ),
                ),
              ),
              SizedBox(height: 25,),
              Text(
                "您未输入姓名或密码,请重新检查您的输入!",
                style: TextStyle(
                  fontSize: 18,
                ),
              ),
              SizedBox(height: 36,),
              Container(
                height: 40,
                width: 150,
                child: MyButton(
                  text: "好的,我马上去检查", 
                  onPressed: ()=>Navigator.of(context).pop(),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}